#ifndef EDITCAT_H
#define EDITCAT_H

#include <QMainWindow>
#include<QListWidgetItem>
#include"catselect.h"
#include"addcategory.h"
#include"db_class.h"

namespace Ui {
    class EditCat;
}

class EditCat : public QMainWindow
{
    Q_OBJECT

public:
    explicit EditCat(QString cat,QWidget *parent = 0);
    ~EditCat();

private:
    Ui::EditCat *ui;
    QListWidgetItem *item1;
    QListWidgetItem *item2;
    QString catnm;
    db_class db;

private slots:
    void on_listWidget_itemActivated(QListWidgetItem* item);
    void back();
};

#endif // EDITCAT_H
